//
//  chosePayStyleTableViewCell.m
//  marrymarry
//
//  Created by lsj on 16/10/11.
//  Copyright © 2016年 cf. All rights reserved.
//

#import "chosePayStyleTableViewCell.h"

@implementation chosePayStyleTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)reloadTheStyleWithIndexPath:(NSIndexPath *)indexPath andSelectedWX:(BOOL)isWXpay
{
    if (indexPath.row == 0) {
        self.payStyleNameLabel.text = @"微信";
        
        self.chooseImgView.image = isWXpay?[UIImage imageNamed:@"chose-yes.png"] :[UIImage imageNamed:@"chose-no.png"];
        
        
    }else if (indexPath.row == 1)
    {
        self.payStyleNameLabel.text = @"支付宝";
        self.chooseImgView.image = isWXpay?[UIImage imageNamed:@"chose-no.png"] :[UIImage imageNamed:@"chose-yes.png"];
    }
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
